home *** CD-ROM | disk | FTP | other *** search
- Path: vixen.cso.uiuc.edu!usenet
- From: WEIMIN YANG <w-yang3>
- Newsgroups: comp.lang.c++
- Subject: Run time dynamic 2-D array?
- Date: 11 Feb 1996 18:33:45 GMT
- Organization: University of Illinois at Urbana
- Message-ID: <4flcq9$i1k@vixen.cso.uiuc.edu>
- NNTP-Posting-Host: sparc19.cs.uiuc.edu
- Mime-Version: 1.0
- Content-Type: text/plain; charset=us-ascii
- Content-Transfer-Encoding: 7bit
- X-Mailer: Mozilla 1.12 (X11; I; SunOS 5.4 sun4c)
- X-URL: news:comp.lang.c++
-
- I need to use a 2-D array. I use following code.
-
- void tryit(int a, int b) {
-
- float c= new float[b][a];
-
- ...
-
- ....
-
- }
-
- I get compile error. Is there another way to do it? By the way, I don't want to
- use 1-D array to implement it.
-
-